package com.mf.all.controller;

import com.mf.all.service.ITaskNotificationService;
import com.mf.all.result.Result;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: lmf
 * @Create: 2025/3/26 10:00
 * @module
 */
@RestController
@RequestMapping("taskNotification/v1")
@Tag(name = "任务通知")
public class TaskNotificationController {
    @Resource
    private ITaskNotificationService taskNotificationService;

    @Operation(summary = "发送任务通知")
    @GetMapping("sendNotification")
    public Result<Void> sendNotification() {
        taskNotificationService.sendNotification();
        return Result.success();
    }

}
